package com.pomr.model.data;

import com.pomr.entity.bigscr.PersonBind;
import com.pomr.model.equipmentstorage.EquipmentLeader;
import com.pomr.model.equipmentstorage.EquipmentStorageDetail;
import com.pomr.model.simstorage.SimStorageDetail;

import java.util.List;

/**
 * 
 * 类名称： EquipmentMessage
 * 创建人： Administrator
 * 创建时间：2018年5月23日 下午2:17:00
 * 类描述：设备信息
 */
public class EquipmentMessage {
	public String getEquipmentName() {
		return equipmentName;
	}

	public void setEquipmentName(String equipmentName) {
		this.equipmentName = equipmentName;
	}

	public String getEquipmentSpec() {
		return equipmentSpec;
	}

	public void setEquipmentSpec(String equipmentSpec) {
		this.equipmentSpec = equipmentSpec;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public String getsN() {
		return sN;
	}

	public void setsN(String sN) {
		this.sN = sN;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getEquipmentCon() {
		return equipmentCon;
	}

	public void setEquipmentCon(String equipmentCon) {
		this.equipmentCon = equipmentCon;
	}

	public SIMMesage getSimMessage() {
		return simMessage;
	}

	public void setSimMessage(SIMMesage simMessage) {
		this.simMessage = simMessage;
	}

	public List<PersonBind> getBinds() {
		return binds;
	}

	public void setBinds(List<PersonBind> binds) {
		this.binds = binds;
	}

	private String equipmentName;//设备名称
	private String equipmentSpec;//设备型号
	private String manufacturer;//厂商
	private String sN;//SN编码
	private String imei;//移动设备识别码
	private String equipmentCon;//状态 默认值1正常
	private SIMMesage simMessage;//sim卡信息

	private List<PersonBind> binds;
	
	public EquipmentMessage() {
	}
	
	public EquipmentMessage(EquipmentStorageDetail qdetail, SimStorageDetail sdetail) {
		this.equipmentName = qdetail.getEquipmentName();
		this.equipmentSpec = qdetail.getEquipmentStorage().getEspecification();
		this.manufacturer = qdetail.getManufacturerName();
		this.sN = qdetail.getsN();
		this.imei = qdetail.getImei();
		this.equipmentCon = qdetail.getCondition();
		if(sdetail != null){
			this.simMessage = new SIMMesage(sdetail);
		}
		
	}

	
	public EquipmentMessage addbinds(List<PersonBind> binds){
		this.binds = binds;
		return this;
	}
}
